<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<link href="houtai/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="houtai/js/main.js"></script>
</head>
<body>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td style="height:25px; background-color:#f3f3f3; font-weight:bold" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;当前位置： 
    <img src="houtai/images/arrow.gif" align="absmiddle">&nbsp;&nbsp;soda创业教育平台&nbsp;&nbsp;
    <img src="houtai/images/arrow.gif" align="absmiddle">&nbsp;&nbsp;后台管理&nbsp;&nbsp;
    <img src="houtai/images/arrow.gif" align="absmiddle">&nbsp;&nbsp;角色管理
    </td>
  </tr>
  <tr>
    <td style="height:34px; background-image:url(houtai/images/main_header.gif); border-bottom:1px solid #cfd8e0; padding:0px">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="20" height="34"><img src="houtai/images/main_headerL.gif" width="20" height="34"></td>
          <td style="color:#90c8e8;"><img src="houtai/images/icon_card.gif" width="16" height="16" align="absmiddle">&nbsp;&nbsp;<strong>角色信息</strong></td>
          <td align="right" class="white" style="padding-right:20px">
          <a  class="barBtn" onClick="javascript:history.go(-1);"><img src="houtai/images/btn_left.gif" align="absmiddle"> 后退</a>
          <a  class="barBtn" onClick="javascript:history.go(+1);"><img src="houtai/images/btn_right.gif" align="absmiddle"> 前进</a>
          <a href="<%=request.getContextPath() %>/RoleServlet?param=showRoleByID&id=${role.rolId }" class="barBtn"><img src="houtai/images/btn_refresh.gif" align="absmiddle"> 刷新</a>
          </td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="100%" valign="top">
    <div style="overflow:auto;height:100%; width:100%">
      <table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
        <TR>
          <th width="20%" align="center">角色名</th>
          <TD class="BGCgray"><input type="text" value="${requestScope.role.rolName }"/></TD>
        </TR>
       <TR>
          <th align="center">对应菜单</th>
          <TD class="BGCgray">
			<ul>
				<c:forEach items="${requestScope.fmenus }" var="fmenu">
				<c:if test="${fmenu.fmeDelete==1 }">
            	<li><input type="checkbox" 
            	<c:forEach items="${requestScope.role.fmenus }" var="fm">
            	<c:if test="${fmenu.fmeName==fm.fmeName }">  checked="checked"</c:if>
            	 </c:forEach>
            	 />${fmenu.fmeName}
            	
               		<ul><c:forEach items="${fmenu.menus }" var="menu">
               		<c:if test="${menu.menDelete==1 }">
                   	<li>
                   	<input type="checkbox"  value=""  
                      	<c:forEach items="${requestScope.role.menus }" var="m"> 
                        	
                         	<c:if test="${m.menName==menu.menName }"> checked="checked"</c:if> 
                        	
                     	</c:forEach> 
                   	/>${menu.menName }</li>
                   	</c:if>
					</c:forEach>
                    </ul> 
                </li>
                </c:if>
                 </c:forEach>
               

            </ul>
          </TD>
        </TR>
         <TR>
          <th align="center">启用状态</th>
          <TD class="BGCgray">
          <input type="radio" name="rolState" value="1" ${requestScope.role.rolState==1?"checked='checked'":""} />启用
          <input type="radio" name="rolState" value="0" ${requestScope.role.rolState==0?"checked='checked'":""} />禁用
          </TD>
        </TR>
        <TR>
          <th align="center"><span class="BGCgray">备注</span></th>
          <TD class="BGCgray">
          	<textarea>${requestScope.role.rolRemark}
            </textarea>
          </TD>
        </TR>
      </table>
      <div style="width:100%; text-align:center; padding:5px">
        <BUTTON style="HEIGHT:25px" onClick="history.go(-1);"><img src="houtai/images/btn_back.gif" width="16" height="16" align="absmiddle"> 返回</BUTTON>
      </div>
    </div>
  </td>
  </tr>
</table>
</body>
</html>